{{define "nav"}}
<a class="navbar-brand" href="/">我的博客</a>
<div class="container">

    <ul class="nav navbar-nav">
        <li {{if .IsHome}}class ="active"{{end}}><a href="/">首页</a></li>
        <li {{if .IsCategory}} class ="active"{{end}}><a href="/category">分类</a></li>
        <li {{if .IsTopic}} class ="active"{{end}}><a href="/topic">文章</a></li>
    </ul>
    <ul class="nav navbar-nav">
        {{if  .IsLogin}}
        <li><a href="/login?exit=true">退出{{.IsLogin}}</a></li>
        {{else}}

        <li><a href="/login">登录{{.IsLogin}}</a></li>
        {{end}}
    </ul>
</div>


<div  class="pull-right">

</div>



{{end}}